package io.renren.modules.news.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import io.renren.modules.news.dao.OpenAdvertDao;
import io.renren.modules.news.entity.OpenAdvertEntity;
import io.renren.modules.news.service.OpenAdvertService;



@Service("openAdvertService")
public class OpenAdvertServiceImpl implements OpenAdvertService {
	@Autowired
	private OpenAdvertDao openAdvertDao;
	
	@Override
	public OpenAdvertEntity queryObject(Integer id){
		return openAdvertDao.queryObject(id);
	}
	
	@Override
	public List<OpenAdvertEntity> queryList(Map<String, Object> map){
		return openAdvertDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return openAdvertDao.queryTotal(map);
	}
	
	@Override
	public void save(OpenAdvertEntity openAdvert){
		openAdvertDao.save(openAdvert);
	}
	
	@Override
	public void update(OpenAdvertEntity openAdvert){
		openAdvertDao.update(openAdvert);
	}
	
	@Override
	public void delete(Integer id){
		openAdvertDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		openAdvertDao.deleteBatch(ids);
	}
	
}
